@extends('admin.layout.layout', ['row' => @$page])
@section('style')
    <style>
        .table .tth{
            background-color: rgba(0, 0, 0, 0.05);
            width: 150px;
            font-weight: bold;
        }
        .table .ttd{
            width: 350px;
        }
        .table .ttt{
            padding: 0;
        }
        .ttt .table{
            margin: 0;
        }
        .ttt .table img + p{
            text-align: center;
            margin: 10px 0 0;
        }
        .tst{
            color: #1e89e0;
            font-weight: 700;
            text-align: center;
            font-size: 1.25rem;
        }
    </style>
@endsection
@section('contain')


    <div class="portlet">
        <div class="portlet-title">
            <div class="caption">
                <x-portlet-breadcrumb :page="$page"></x-portlet-breadcrumb>
            </div>
            <div class="actions"></div>
        </div>

        <form action="/admin/userinfo/" method="post">
            @csrf
            @method('PUT')
            <table class="table s3">
                <tbody>
                <tr>
                    <td colspan="6" class="tst">{{ ts('baseinformation') }}</td>
                </tr>
                <tr>
                    <td class="tth">{{ ts('SDZH') }}</td>
                    <td class="ttd">{{ $data->unique_id }}</td>
                    <td class="tth">{{ ts('SDMC') }}</td>
                    <td class="ttd">{{ $data->abbr }}</td>
                    <td class="tth">{{ ts('companyname') }}</td>
                    <td class="ttd">{{ $data->company_name }}</td>
                </tr>
                <tr>
                    <td class="tth">{{ ts('phonenumber') }}</td>
                    <td class="ttd">{{ $data->extension }} {{ $data->phone_number }}</td>
                    <td class="tth">{{ ts('email') }}</td>
                    <td class="ttd">
                        <input type="email" name="email_address" value="{{ $data->email_address }}" class="form-control">
                    </td>
                    <td class="tth">{{ ts('status') }}</td>
                    <td class="ttd">{{ $data->status == 1 ? ts('active') : ts('DEACTIVE') }}</td>
                </tr>
                <tr>
                    <td colspan="6" class="tst">{{ ts('regionInformation') }}</td>
                </tr>
                <tr>
                    <td class="tth">{{ ts('region') }}</td>
                    <td>{{ ts('region_master.'.$data->region_id) }}</td>
                    <td class="tth">{{ ts('province') }}</td>
                    <td>{{ ts('province_master.'.$data->province_id) }}</td>
                    <td class="tth">{{ ts('city') }}</td>
                    <td>{{ ts('cities.'.$data->city) }}</td>
                </tr>
                <tr>
                    <td class="tth">{{ ts('addresss') }}</td>
                    <td colspan="5">
                        <input type="text" name="address" value="{{ $data->address }}" class="form-control">
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="tst">{{ ts('contactinformation') }}</td>
                </tr>
                <tr>
                    <td class="tth">{{ ts('XINGMING') }}</td>
                    <td>
                        <input type="text" name="first_name" value="{{ $data->first_name }}" class="form-control">
                    </td>
                    <td class="tth">{{ ts('PHONENUMBER') }}</td>
                    <td>
                        <input type="text" name="cell_phone" value="{{ $data->cell_phone }}" class="form-control">
                    </td>
                    <td class="tth">{{ ts('WECHATID') }}</td>
                    <td>
                        <input type="text" name="wechat_id" value="{{ $data->wechat_id }}" class="form-control">
                    </td>
                </tr>
                {{--<tr>
                    <td colspan="6" class="tst">{{ ts('BEIZHU') }}</td>
                </tr>
                <tr>
                    <td colspan="6" height="64">{{ $data->note }}</td>
                </tr>--}}
                </tbody>
            </table>
            <div class="my-4">
                <button href="/{{ request()->path() }}/../" class="btn btn-primary">{{ ts('store') }}</button>
            </div>
        </form>


    </div>


@endsection